package com.alibaba.org.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.alibaba.basic.constant.BaseConstants;
import com.alibaba.basic.domain.BaseDomain;
import com.alibaba.system.domain.Role;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 实体类：
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Employee extends BaseDomain{


    private Long id;
    /**
     * 员工名称
     */
    private String username;
    /**
     * 员工电话
     */
    private String phone;
    /**
     * 员工邮箱
     */
    private String email;
    /**
     * 盐值
     */
    private String salt;
    /**
     * 密码
     */
    private String password;
    /*
     校验密码
     */
    private  String comfirmPassword;
    /**
     * 年龄
     */
    private Integer age;
    /**
     * 员工状态 - 1启用，0禁用
     */
    private Integer state = BaseConstants.Employee.STATE_NORMAL;
    /**
     * 所属部门ID
     */
    private Long departmentId;
    /**
     * 登录信息ID
     */
    private Long logininfoId;
    /**
     * 店铺ID
     */
    private Long shopId;

    private Department department;

    private Shop shop;

    private List<Long> roles=new ArrayList<>();
}
